<!--[*
// ----------------------------------------------------------------------
// Source file:  $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/pncommerce_admin_itemsearch.html,v $
//
// Last changes from:  $Author: landseer $
//
// Revision:           $Revision: 1.14 $
//
// Date of revision    $Date: 2005/03/22 13:59:45 $
//
// ----------------------------------------------------------------------
*]-->

<!--[ include file='pncommerce_admin_commonHeader.html' ]-->

<fieldset>
    <legend>
        <!--[pnml name='_PNC_SEARCHITEMS' html=1 ]-->&nbsp;&nbsp;<a <!--[pncManualURL Chapter="702" OpenHelpWindow='1']-->> <!--[pnimg src="doc.gif" border='0' ]--></a>
    </legend>
	
    <form action='<!--[ pncAdminModURL func=itemsearch ]-->' method='post'>
    <!--IMPORTANT!-->
    <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
    <div class="adminrow">
        <span class="admincell33">
            <!--[ pnml name='_PNC_SEARCHFORITEM' html=1 ]-->
        </span>
        <span class="admincell66">
			<input type='text' size='20' maxlength="40" name='SearchString' value='<!--[ $SearchString ]-->'>
			<!--[ html_options name=SearchArea options=$SearchAreaList selected=$SearchArea ]-->
        </span>
    </div>
    <div class="adminrow">
        <span class="admincell33">
            <!--[ pnml name='_PNC_ORDERBY' html=1 ]-->
        </span>
        <span class="admincell66">
            <!--[ html_options name=OrderBy options=$OrderByList selected=$OrderBy ]-->
        </span>
    </div>
    <div class="adminrow">
            <input type='submit' name='search' value='<!--[pnml name='_PNC_SUBMIT']-->'>
    </div>
    </form>

    <br />
    
    <!--[ if $ItemCount > 0 ]-->
    <div style="clear: both;">
    <table style="border: 1px solid black;" cellpadding="5" width="100%">
        <tr>
            <th><!--[ pnml name='_PNC_PRODUCTID' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_PRODUCTNUMBER' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_PRODUCTNAME' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_QUANTITYONHAND' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_QUANTITYSOLD' html=1 ]--></th>
            <th>&nbsp;</th>
        </tr>
    
        <!--[ foreach item=Item from=$ItemList ]-->
        <tr>
            <td align='center'>
                <!--[ $Item.ID ]-->
            </td>
            <td align='center'>
                <!--[ $Item.SKU ]-->
            </td>
            <td align='center'>
                <!--[ $Item.Name ]-->
            </td>
    
            <!--[ if $Item.IgnoreQuantity == on ]-->
            <td>
                <!--[ pnml name='_PNC_IGNOREQUANTITY' html=1 ]-->
            </td>
            <!--[ else ]-->
            <td align='center'>
                <!--[ $Item.Quantity ]-->
            </td>
            <!--[ /if ]-->
    
            <td align='center'>
                <!--[ $Item.OrderedQuantity ]-->
            </td>
            <td>
                <form action='<!--[ pncAdminModURL func=itemedit ]-->' method='post'>
                <input type='hidden' name='IID' value='<!--[ $Item.ID ]-->' >
                <input type='hidden' name='Mode' value='edit' >
                <input class='pn-button' type='submit' name='edit' value='<!--[pnml name='_PNC_EDIT']-->'>
                </form>
            </td>
        </tr>
        <!--[ /foreach ]-->
    </table>
    </div>
    <!--[ /if ]-->
</fieldset>

<!--[*pndebug*]-->
<!--[ include file='pncommerce_admin_commonFooter.html' ]-->